package com.ui.basic.command.masterdata;

import java.util.List;

import org.springmodules.validation.bean.conf.loader.annotation.handler.Length;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;

import com.common.basic.base.BaseCommand;
import com.common.basic.util.ComboValue;
import com.ui.basic.ibatis.model.masterdata.TblMCurrencies;

public class CommandCurrency extends BaseCommand implements
		java.io.Serializable {

	private static final long serialVersionUID = 970878381717335283L;

	private Long id;

	@NotBlank
	@Length(max = 3)
	private String currabrev;

	@NotBlank
	@Length(max = 20)
	private String currency;

	@NotBlank
	@Length(max = 15)
	private String hundredsname;

	@NotNull
	private Long countryId;

	private List<ComboValue> countryList;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getCurrabrev() {
		return currabrev;
	}

	public void setCurrabrev(String currabrev) {
		this.currabrev = currabrev;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getHundredsname() {
		return hundredsname;
	}

	public void setHundredsname(String hundredsname) {
		this.hundredsname = hundredsname;
	}

	public Long getCountryId() {
		return countryId;
	}

	public void setCountryId(Long countryId) {
		this.countryId = countryId;
	}

	public void setProperty(TblMCurrencies tblMCurrencies) {
		this.id = tblMCurrencies.getId();
		this.currabrev = tblMCurrencies.getCurrabrev();
		this.currency = tblMCurrencies.getCurrency();
		this.hundredsname = tblMCurrencies.getHundredsname();
		this.countryId = tblMCurrencies.getCountryId();
	}

	public void setCountryList(List<ComboValue> countryList) {
		this.countryList = countryList;
	}

	public List<ComboValue> getCountryList() {
		return countryList;
	}

}